#!/usr/bin/env python
# -*- coding:utf-8 -*-
#继承
class 动物:
    def 吃(self):
        #do something
    def 喝(self):
        #do something
class 猫(动物):
    def 喵喵叫:
        print "喵喵"
class 狗(动物):
    def 汪汪叫:
        print "汪汪"
animal=猫()
animal.喵喵叫()
animal.吃()
animal.喝()